//
//  PlayerInfo.h
//  CandyCrushClone
//
//  Created by  Stefan Nestorov on 1/3/15.
//  Copyright (c) 2015 Nestorov Engineering. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Player.h"
#import <SFS2XAPIIOS/SmartFox2XClient.h>

@interface GameInfo : NSObject

@property (nonatomic, assign) BOOL isMyTurn;
@property (nonatomic, assign) BOOL isGameOver;
@property (nonatomic, assign) BOOL isAbortedGameByMe;
@property (nonatomic, assign) NSInteger winnerID;
@property (nonatomic, assign) BOOL isPlayingWithBot;
@property (nonatomic, assign) BOOL shouldUseHero;
@property (nonatomic) NSDictionary *gameWinConditions;
@property (nonatomic) NSSet *shuffleCookiesSet;
@property (nonatomic) NSSet *currentBoardCookiesSet;

@property (nonatomic) Player *localPlayer;
@property (nonatomic) Player *otherPlayer;

+ (instancetype)sharedInfo;

// Set Hero Usage Conditions and Skills for both players
- (void)setFirstPlayerHeroConditions:(NSDictionary *)firstPlayerHeroConditions secondPlayerHeroConditions:(NSDictionary *)secondPlayerHeroConditions  firstPlayerHeroSkillsOnMyself:(NSDictionary *)firstPlayerHeroSkillsOnMyself firstPlayerHeroSkillsOnOtherPlayer:(NSDictionary *)firstPlayerHeroSkillsOnOtherPlayer secondPlayerHeroSkillsOnMyself:(NSDictionary *)secondPlayerHeroSkillsOnMyself secondPlayerHeroSkillsOnOtherPlayer:(NSDictionary *)secondPlayerHeroSkillsOnOtherPlayer withFirstPlayerId:(NSInteger)firstPlayerId;

/** Set User Variables for player */
- (void)setUserVariables:(NSArray *)userVariables forUser:(NSInteger)playerId;
- (void)setVariablesForBot:(NSDictionary *)botInfo;
- (void)resetGameParameters;

@end
